I'm working on migrating my app from using CoreData to SwiftData. The swift data code generated by Xcode works correctly for the iOS and Mac Catalyst targets but it is causing a crash for the WatchOS target.
It gives me this message **Fatal error: Application must register a ValueTransformer for NSSecureUnarchiveFromDataTransformer **
This attribute is the only one with a .transformable option.
@Attribute(.transformable(by: "NSSecureUnarchiveFromDataTransformer"))
public var linkedEntities: [UUID] = []
Changing the string NSSecureUnarchiveFromDataTransformer to NSValueTransformerName.secureUnarchiveFromDataTransformerName.rawValue causes a generic crash with no error message.
The app has CloudKit integration as well (not sure if relevant).
Does anyone have a similar issue and can help me on what to do here?
Post
Replies
Boosts
Views
Activity
I have an iOS app with custom file formats and a quicklook extension. I want to be able to save the file into the app without the need to "share" the file with the main app.
I tried both using core data and user defaults, with the app group configured ofc, and for both I get errors about need write access. Is there any way around this or is it impossible to have a "save" feature on quicklook?
Is presentLimitedLibraryPicker missing from the Xcode beta (5 at the time of this question)?